<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 郑帅
  Date: 2019/8/21
  Time: 19:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<script src="<c:url value="/layui/layui.js"/>"></script>
<link rel="stylesheet" type="text/css" href="<c:url value="/layui/css/layui.css"/>">|
<script src="/js/jquery-1.9.1.min.js"></script>
<script>
    $(function () {
               pd()
alert(${param.CutId})
        $("#name").blur(function () {

            pd()
        })
        $("#position").blur(function () {


            pd()
        })
        $("#mobilePhone").blur(function () {

            pd()
        })
        $("#sex").blur(function () {

            pd()
        })
        $("#officePhone").blur(function () {

            pd()
        })
        $("#remark").blur(function () {

            pd()
        })

        function  pd() {
            if ( $("#name").val()==""||$("#position").val()==""||$("#mobilePhone").val()==""||$("#sex").val()==""||$("#officePhone").val()==""||$("#remark").val()=="")
            {
              $("#but").attr("disabled","disabled");
            }
            else
                {

                    $("#but").removeAttr("disabled");
                }
        }


    })


</script>
<body>

<div style="margin-left: 220px;margin-top: 180px">


    <form class="layui-form layui-form-pane" action="/LinInsert.do?customerId=${param.CutId}" method="post">

        <div class="layui-form-item">
            <%--<div class="layui-inline">--%>
                <%--<label class="layui-form-label">编号：</label>--%>
                <%--<div class="layui-input-inline">--%>
                    <%--<input id="customerId" name="customerId" lay-verify="customerId" type="text" autocomplete="off" class="layui-input" value="${param.CutId}"   style="width: 40px" disabled="disabled">--%>
                <%--</div>--%>
            <%--</div>--%>
            <%--    姓名    --%>
                <div class="layui-inline">
                <label class="layui-form-label">姓名：</label>
                <div class="layui-input-inline">
                    <input id="name" name="name" lay-verify="name" type="text" autocomplete="off" class="layui-input" value="" >
                </div>
            </div>
            <%--    职位    --%>
            <div class="layui-inline">
                <label class="layui-form-label">职位：</label>
                <div class="layui-input-inline">
                    <input id="position" name="position" lay-verify="position" type="text" autocomplete="off" class="layui-input"  value="">
                </div>
            </div>
            <%--     客户类别   --%>
            <div class="layui-inline">
                <label class="layui-form-label">手机：</label>
                <div class="layui-input-inline">
                    <input id="mobilePhone" name="mobilePhone" lay-verify="mobilePhone" type="text" autocomplete="off" class="layui-input"  value="">
                </div>
            </div>
        </div>


        <div class="layui-form-item">
            <%--    性别    --%>
            <div class="layui-inline">
                <label class="layui-form-label">性别：</label>
                <div class="layui-input-inline">
                    <input id="sex" name="sex" lay-verify="sex" type="text" autocomplete="off" class="layui-input" value="" >
                </div>
            </div>
            <%--    办工电话    --%>
            <div class="layui-inline">
                <label class="layui-form-label">办工电话：</label>
                <div class="layui-input-inline">
                    <input id="officePhone" name="officePhone" lay-verify="officePhone" type="text" autocomplete="off" class="layui-input"  value="">
                </div>
            </div>
            <%--     备注   --%>
            <div class="layui-inline">
                <label class="layui-form-label">备注：</label>
                <div class="layui-input-inline">
                    <input id="remark" name="remark" lay-verify="remark" type="text" autocomplete="off" class="layui-input"  value="">
                </div>
            </div>
        </div>

        <div style="width: 170px; margin-left: 390px;margin-top: 50px">
            <button type="submit" class="layui-btn layui-btn-fluid" id="but" >
                <i class="layui-icon layui-icon-search">流体按钮</i></button>
        </div>
    </form>
</div>

</body>
</html>
